<?php
class cmspad_validator_decimal{
	
	public function validate($value){
		return preg_match('/^\d+(\.\d+)?$/',$value);
	}
	
	public static function getJavascript($value){
		return "return /^\\d+(\\.\\d+)?$/.test($value);";
	}
}
?>
